package com.ruiysoft.crm.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruiysoft.crm.mapper.BizSpecificationMapper;
import com.ruiysoft.crm.model.entity.BizSpecification;
import com.ruiysoft.crm.service.BizSpecificationService;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * @author fanyl
 */
@Service
public class BizSpecificationServiceImpl extends ServiceImpl<BizSpecificationMapper, BizSpecification> implements BizSpecificationService {
    private final BizSpecificationMapper bizSpecificationMapper;

    public BizSpecificationServiceImpl(BizSpecificationMapper bizSpecificationMapper) {
        this.bizSpecificationMapper = bizSpecificationMapper;
    }


    @Override
    public Map<String, Object> getSysDictByValue(String value, String type) {
        return bizSpecificationMapper.querySysDictByValue(value, type);
    }
}